<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>{{message}}</p>
        <hr/>
        <!-- v-if -->
        <!-- <div v-if="isLogin">你好：家君</div>
        <div v-else>请登录</div> -->

        <!-- v-show -->
        <!-- <div v-show="isLogin">你好：家君</div>
        <div >请登录</div>  -->

        <!-- v-for -->
        <!-- <ul>
            <li v-for="item in items">{{item}}</li>
        </ul> -->


        <!-- v-text  v-html -->
        <!-- <p>
            <span v-text="span1">span1</span>
            <span v-html="span2">span2</span>
        </p> -->

    </div>

    <script>
        // yuanben
        // let app = document.getElementById('app')
        // app.innerHTML = 'Hello World'

        var app = new Vue({
            el:'#app',
            data:{
                message: 'Hello World',
                isLogin:false,
                items:[1,2,3,4,5,6,7,8,9],
                span1:'你好',
                span2:'<h2>你好</h2>'
            }
        })
        
    </script>
</body>
</html>